package pattern.creational.builder;

/**
 * @author: chaoyang.ren  
 * @date:Jul 13, 2017  
 * @time:3:28:24 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class ConcreteBuilder extends Builder {
	private Product product = new Product();
	
	@Override
	public void buildPartA() {
		Part partA = new Part("a");
        product.setPartA(partA);
	}

	@Override
	public void buildPartB() {
		Part partA = new Part("b");
        product.setPartB(partA);
	}

	@Override
	public void buildPartC() {
		Part partA = new Part("c");
        product.setPartC(partA);
	}

	public Product getProduct() {
        return this.product;
    }
}

